//
//  SearchView.h
//  WGFGlobalHouses
//
//  Created by welldone on 15/5/20.
//  Copyright (c) 2015年 waiguofang. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ScroDeleteTableView.h"
#import "HideTextVeiw.h"


@protocol SearchViewDelegate

@optional
-(CGFloat)getCellHight;

-(NSInteger)getCellCount;

-(void)didSelecteItemIndex:(int)index;

-(UITableViewCell*)getCellByTableView:(UITableView*)tableView WithIndexPath:(NSIndexPath *)indexPath;

-(void)hideSearchView;


@end

@interface SearchView : NSObject

@property (nonatomic,weak) id<SearchViewDelegate>delegate;

-(instancetype)initWithParentView:(UIView*)view withEt:(UITextField*)et;


-(void)hide;



@property (nonatomic,strong)ScroDeleteTableView *tableView;
@property (nonatomic,strong) HideTextVeiw *textView;

-(void)show;

-(void)tableViewReloadAndUpFrame;

@end
